package com.gopay.common.constants.approval;

/**
 * 任务目标枚举
 * 
 * @TargetValue.java
 * @author yaobo
 * @2013-1-17 下午05:33:30 www.gopay.com.cn Inc.All rights reserved.
 */
public enum TargetValue {
    /**
     * 订单
     */
    ORDER(1),
    
    /**
     * 企业用户
     */
    USER(2),
    
    /**
     * 批量订单包
     */
    BATCH(3),
    
    /**
     * 方案
     */
    SOLU(4);
    
    public final int value;

    private TargetValue(int value) {
        this.value = value;
    }
    
    public static TargetValue getTargetValue(int value) {
    	switch(value) {
    	case 1 : return ORDER;
    	case 2 : return USER;
    	case 3 : return BATCH;
    	case 4 : return SOLU;
    	default : return null;
    	}
    }
}
